package org.lc.scoretj.repository;

import org.lc.scoretj.model.TrainingLevelMajorTeamStatistics;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface TrainingLevelMajorTeamStatisticsRepository extends JpaRepository<TrainingLevelMajorTeamStatistics, Integer> {
    
    /**
     * 根据学期查询统计数据
     * @param xueQe 学期
     * @param pageable 分页参数
     * @return 分页结果
     */
    Page<TrainingLevelMajorTeamStatistics> findByXueQe(String xueQe, Pageable pageable);
    
    /**
     * 根据学期、培养层次和专业查询统计数据
     * @param xueQe 学期
     * @param peiYangCengCi 培养层次
     * @param zhuanYe 专业
     * @param pageable 分页参数
     * @return 分页结果
     */
    Page<TrainingLevelMajorTeamStatistics> findByXueQeAndPeiYangCengCiAndZhuanYe(String xueQe, String peiYangCengCi, String zhuanYe, Pageable pageable);
}